colorCompat

The color that the compat mechanism uses to tint the shadow. The default value is black (#FF000000), which disables the tint. If any other color is set, the compat mechanism takes over, and the ambient and spot values are ignored.

Color compat requires that the drawable instance be created with a View object that's attached to the on-screen hierarchy. If the View is not attached to the hierarchy, there is no guaranteed behavior. If the